/**
 * 
 */
package com.demo.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Issac
 *
 */
//@Entity
//@Table(name="e_city")
public class City  implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	@Id 
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int id;
	
	@Column(name="city_code")
	private String city_code;
	
	@Column(name="name")
	private String name;
	
	@Column(name="p_code")
	private String p_code;
	
	@Column(name="order_index")
	private short order_index;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCity_code() {
		return city_code;
	}
	public void setCity_code(String city_code) {
		this.city_code = city_code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getP_code() {
		return p_code;
	}
	public void setP_code(String p_code) {
		this.p_code = p_code;
	}
	public short getOrder_index() {
		return order_index;
	}
	public void setOrder_index(short order_index) {
		this.order_index = order_index;
	}
	
}
